from django.contrib import admin

from .models import UserAsk, UserLove, UserCourse, UserComment, UserMessage


class UserAskXadmin(admin.ModelAdmin):
    list_display = ["name", "phone", "course", "add_time"]


class UserLoveXadmin(admin.ModelAdmin):
    list_display = ["love_man", "love_id", "love_type", "love_statu", "add_time"]


# 用户  课程 多对多
class UserCourseXadmin(admin.ModelAdmin):
    list_display = ["study_man", "study_course", "add_time"]


class UserCommentXadmin(admin.ModelAdmin):
    list_display = ["comment_man", "comment_course", "comment_content", "add_time"]


class UserMessageXadmin(admin.ModelAdmin):
    list_display = ["message_man", "message_content", "message_startus", "add_time"]


admin.site.register(UserAsk, UserAskXadmin)
admin.site.register(UserLove, UserLoveXadmin)
admin.site.register(UserCourse, UserCourseXadmin)
admin.site.register(UserComment, UserCommentXadmin)
admin.site.register(UserMessage, UserMessageXadmin)


# Register your models here.
